class Floordata {
  List<ProductData>? message;
  Meta? meta;

  Floordata({this.message, this.meta});

  Floordata.fromJson(Map<String, dynamic> json) {
    if (json['message'] != null) {
      message = <ProductData>[];
      json['message'].forEach((v) {
        message!.add(ProductData.fromJson(v));
      });
    }
    meta = json['meta'] != null ? Meta.fromJson(json['meta']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (message != null) {
      data['message'] = message!.map((v) => v.toJson()).toList();
    }
    if (meta != null) {
      data['meta'] = meta!.toJson();
    }
    return data;
  }
}

class ProductData {
  FloorTitle? floorTitle;
  List<ProductList>? productList;

  ProductData({this.floorTitle, this.productList});

  ProductData.fromJson(Map<String, dynamic> json) {
    floorTitle = json['floor_title'] != null
        ? FloorTitle.fromJson(json['floor_title'])
        : null;
    if (json['product_list'] != null) {
      productList = <ProductList>[];
      json['product_list'].forEach((v) {
        productList!.add(ProductList.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (floorTitle != null) {
      data['floor_title'] = floorTitle!.toJson();
    }
    if (productList != null) {
      data['product_list'] = productList!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class FloorTitle {
  String? name;
  String? imageSrc;

  FloorTitle({this.name, this.imageSrc});

  FloorTitle.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    imageSrc = json['image_src'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['name'] = name;
    data['image_src'] = imageSrc;
    return data;
  }
}

class ProductList {
  String? name;
  String? imageSrc;
  String? imageWidth;
  String? openType;
  String? navigatorUrl;

  ProductList(
      {this.name,
      this.imageSrc,
      this.imageWidth,
      this.openType,
      this.navigatorUrl});

  ProductList.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    imageSrc = json['image_src'];
    imageWidth = json['image_width'];
    openType = json['open_type'];
    navigatorUrl = json['navigator_url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['name'] = name;
    data['image_src'] = imageSrc;
    data['image_width'] = imageWidth;
    data['open_type'] = openType;
    data['navigator_url'] = navigatorUrl;
    return data;
  }
}

class Meta {
  String? msg;
  int? status;

  Meta({this.msg, this.status});

  Meta.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['msg'] = msg;
    data['status'] = status;
    return data;
  }
}
